// C++ author 清晨与猫鱼
#include <iostream>
#include <string>
#include "Realize.h"        // 引入实现文件

using namespace std;

int main(const int argc, const char** argv)
{	
    // 获取懒汉模式的单一实例
	SingleObject& object = SingleObject::GetInstance();

    object.showMessage();

    // 获取饿汉模式的单一实例
    SingleObjectT& objectT = SingleObjectT::GetInstance();

    objectT.showMessage();

    // 获取多线程安全版本的单一实例
    SingleObjectTT& objectTT = SingleObjectTT::GetInstance();

    objectTT.showMessage();
}